zz_

src/isOdd.js

zzmq.dev@gmail.com[dev3]/mathkit[add-factorial-n-function-tests] / src / isOdd.js @ 03f29f63 Download
Ladder Summary
  • file Contains the implementation of the isOdd function which determines if a given number is odd.
import { test } from "node:test";
import assert from "node:assert/strict";

export function isOdd(n) {
  return n % 2 !== 0;
}